package com.example.uCenter.admin.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 后台管理员实体类
 *
 * @author xxs
 * @since 2022-08-27 08:20:38
 */
@Data
@TableName("admin_user")
public class AdminUser implements Serializable {

    @ApiModelProperty("管理员id")
    @TableId(value = "admin_id", type = IdType.AUTO)
    private Integer adminId;

    @ApiModelProperty("管理员姓名")
    @TableField("admin_name")
    private String adminName;

    @ApiModelProperty("管理员密码")
    @TableField("admin_pwd")
    private String adminPwd;

    @ApiModelProperty("账号是否有效（0有效，1无效）")
    @TableField("admin_valid")
    private Integer adminValid;

    @ApiModelProperty("管理员在线状态（0在线，1不在线）")
    @TableField("admin_state")
    private Integer adminState;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField("update_time")
    private LocalDateTime updateTime;

}
